<?php

require_once 'Zend/View/Helper/Abstract.php';

class Core_View_Helper_Controls_IsXhtml extends Zend_View_Helper_Abstract
{
    /**
     *
     */
    public function isXhtml($doctype = null)
    {
        if (empty($doctype)) {
            $doctype = $this->view->doctype();
        }

        if ($doctype->isXhtml()) {
            return ' xmlns="http://www.w3.org/1999/xhtml"';
        } else {
            return null;
        }
    }
}